/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 米来宝
 */

 // 获取版本信息
 export const getVersion = "http://download.bq04.com/milb"
// 登录
export const getLogin = "https://www.midddd.com/api/Login/LoginByMobile"
// 获取账号信息
export const getSysSendTaskAccount = "https://www.midddd.com/api/Member/GetSysSendTaskAccount "
// 加入排队
export const getNewsSystemSendTask = "https://www.midddd.com/api/Task/NewsSystemSendTask"
// 获取任务
export const getQueryTaskReceivingStatus = "https://www.midddd.com/api/Task/QueryTaskReceivingStatus"

export const apikey = 'Wx@6_4Aa#e_6Fr5c1_24El@1a1_u8G4t9Rg';
export const appId = 'A6096114803624';
export const appName = 'milaibao';
export const clientId = 'BB594732F19A3AC05AB1CB5663B81E61';
export const clientSecret = '1DA2A3756CCA0003387A772AE2C1135D';

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: param.headers || {},
        dataType: param.dataType || 'json',
        returnAll: false,
        data: {
            values: param.data
        }
    }, fun)
}
